package de.unidue.langtech.teaching.pp.example;



import java.util.Collection;

import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
import org.apache.uima.fit.component.JCasAnnotator_ImplBase;
import org.apache.uima.fit.util.JCasUtil;
import org.apache.uima.jcas.JCas;

import de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token;
import de.unidue.langtech.teaching.pp.type.RelationType;


 /*The Baseline is important to show the relation in the Sentence. 
   It always identifies "Entity-Destination" 
   
    @author betuel
*/
 
public class MyBaseline
    extends JCasAnnotator_ImplBase
{

    @Override
    public void process(JCas jcas)
        throws AnalysisEngineProcessException
    {
    
        System.out.println("Sentence is: " + jcas.getDocumentText());
            
        
        RelationType relationAnno = new RelationType(jcas);
        relationAnno.setRelation("Entity-Destination(e1,e2)"); 
        relationAnno.addToIndexes();
        
        // am haeuftigsten vorkommende Beziehung wird ausgewaehlt
      
       }

}